// 此文件用于定义首页的接口api类型规范
// 导入requset请求
import requset from '@/utils/request'

/**
 * @desc 获取首页的数据
 * @returns Promise
 */
export const getHomeData = () => {
  return requset.get('/xhr/index.json?__timestamp=1630131808529')
}

/**
 * @desc 去某个频道
 * @returns Promise
 */
export const getHomeNavDta = () => {
  return requset.get('/item/list.json?__timestamp=1630136511866&categoryId=1005000')
}
